package cn.jia.spring4.aspect;

import cn.jia.spring4.aspect.CriticismEngine;

/**
 * Created by jia on 2018/4/3.
 */
public class CriticismEngineImpl implements CriticismEngine {
    public CriticismEngineImpl() {}
    @Override
    public String getCriticism() {
        int i = (int) (Math.random() * criticismPool.length);
        return criticismPool[i];
    }
    // injected
    private String[] criticismPool;
    public void setCriticismPool(String[] criticismPool) {
        this.criticismPool = criticismPool;
    }
}
